package com.gxa.service.system;

import com.gxa.vo.AdminVo;
import com.gxa.vo.MenuVo;
import com.gxa.vo.RoleVo;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Set;

public interface AdminService {
    List<AdminVo> queryAllAdmin();

    List<AdminVo> queryAdminsByName(String name);

    List<RoleVo> queryAllRole();

    void addAdmin(AdminVo adminVo);

    AdminVo queryAdminById(Integer id);

    void updateAdmin(AdminVo adminVo);

    boolean delAdmin(Integer id);

    void updateAdminStatus(Integer id,Integer status);

    void updateAdminPwd(Integer id,String pwd);

    Integer queryAdmin(AdminVo adminVo);

    List<MenuVo> queryMenus(Integer user_id);

    Integer addUser(AdminVo adminVo);

    Set<String> queryMenusByName(String name);

    AdminVo queryAdminByAccount(String account);

    List<MenuVo> selPMenu(Integer user_id);

    List<MenuVo> selSMenu(Integer id);
}
